﻿		var renderDown = function(val, metaData, record) {		var keyid = record.get('sys_news__news_id');		//先提取html中文本，再截取一段		val = JxSender.htmlToText(val);		val = Ext.util.Format.ellipsis(val, 40);				var chgcolor = 'onmouseover="this.style.color=\'#FF4400\';" onmouseout="this.style.color=\'#0080FF\';"';		var html = '<a style=\'color:#0080FF;\' '+ chgcolor +' onclick="JxSender.readBoard(\''+ keyid +'\');">&nbsp;'+ val +'&nbsp;</a>';		return html;	};	for (var i = 0; i < cols.length; i++) {		var f = cols[i].field;		if (f && f.name.indexOf('sys_news__news_cont') == 0) {			cols[i].col.renderer = renderDown;		}	}		config.eventcfg = {		createnew: function() {			var me = this;			JxSender.send(me.grid);		}
	};		config.initpage = function(gn){			};